using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class FMS_FeeApplyAttachmentMap : EntityTypeConfiguration<FMS_FeeApplyAttachment>
	{
		public FMS_FeeApplyAttachmentMap()
		{
			// Primary Key
			this.HasKey(t => t.ID);

			// Properties
			this.Property(t => t.Name)
				.HasMaxLength(50);
				
			this.Property(t => t.FilePath)
				.HasMaxLength(100);
				
			this.Property(t => t.FileType)
				.HasMaxLength(20);
				
			// Table & Column Mappings
			this.ToTable("FMS_FeeApplyAttachment");
			this.Property(t => t.ID).HasColumnName("ID");
			this.Property(t => t.PID).HasColumnName("PID");
			this.Property(t => t.BizType).HasColumnName("BizType");
			this.Property(t => t.Name).HasColumnName("Name");
			this.Property(t => t.FilePath).HasColumnName("FilePath");
			this.Property(t => t.FileType).HasColumnName("FileType");
			this.Property(t => t.CreateUser).HasColumnName("CreateUser");
			this.Property(t => t.UpdateUser).HasColumnName("UpdateUser");
			this.Property(t => t.CreateTime).HasColumnName("CreateTime");
			this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
			this.Property(t => t.IsDelete).HasColumnName("IsDelete");
		}
	}
}

